<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Forpastime <Forpastime@qq.com>
// +----------------------------------------------------------------------

namespace api\partner\model;

use think\Model;

class PartnerModel extends Model
{
    public function checkAccount($userName,$password)
    {
        $res = $this->where(['account'=>$userName,'password'=>cmf_password($password)])->find();

        return $res;
    }

}